// D:\hpbiui\src\router\modules\home.ts

const { VITE_HIDE_HOME } = import.meta.env;
const Layout = () => import("@/layout/index.vue");

export default [
  {
    path: "/",
    name: "Home",
    component: Layout,
    redirect: "/welcome",
    meta: {
      icon: "ep:home-filled",
      title: "首页",
      rank: 0
    },
    children: [
      {
        path: "/welcome",
        name: "Welcome",
        component: () => import("@/views/welcome/index.vue"),
        meta: {
          title: "首页",
          showlink: VITE_HIDE_HOME !== "true" ? 1 : 0
        }
      }
    ]
  },
  {
    path: "/personal",
    name: "Personal",
    component: () => import("@/views/personal/index.vue"),
    meta: {
      title: "个人中心",
      icon: "ep:user",
      rank: 99
    }
  }
] satisfies Array<RouteConfigsTable>;
